/**
 * 
 */
package com.aibili.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 系统消息表
 * 
 * @author qiuch
 * 
 */
@Entity
@Table(name = "t_notice_info")
public class NoticeInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6734740117231616299L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 11, nullable = false)
	private long id;

	@Column(name = "title")
	private String title;

	@Column(name = "content")
	private String content;

	@Column(name = "user_id", length = 11, nullable = false)
	private long user_id;//发的人
	
	@Column(name = "from_id", length = 11, nullable = false)
	private long from_id;//被发的人
	
	@Column(name = "moment_id", length = 11, nullable = false)
	private long moment_id;

	@Column(name = "publish_time", columnDefinition = "TIMESTAMP default CURRENT_TIMESTAMP")
	private Date publish_time;

	@Column(name = "del_flg", length = 1, columnDefinition = "DEFAULT 0")
	private int del_flag;

	@Column(name = "portrait")
	private String portrait; // 头像地址

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public long getUser_id() {
		return user_id;
	}

	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}

	public Date getPublish_time() {
		return publish_time;
	}

	public void setPublish_time(Date publish_time) {
		this.publish_time = publish_time;
	}

	public int getDel_flag() {
		return del_flag;
	}

	public void setDel_flag(int del_flag) {
		this.del_flag = del_flag;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public long getMoment_id() {
		return moment_id;
	}

	public void setMoment_id(long moment_id) {
		this.moment_id = moment_id;
	}

	public long getFrom_id() {
		return from_id;
	}

	public void setFrom_id(long from_id) {
		this.from_id = from_id;
	}

}
